package com.example.pedidosapp;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class MainActivity extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		Button btnCad = (Button) findViewById(R.id.CadProduto);
		Button btnAddPedido = (Button) findViewById(R.id.CadProduto);
		Button btnFechamento = (Button) findViewById(R.id.CadProduto);
		btnCad.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),Mesa.class);
				startActivity(i);
			}
		});
		btnAddPedido.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),AddPedido.class);
				startActivity(i);
			}
		});
		btnFechamento.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Intent i = new Intent(getApplicationContext(),Fechamento.class);
				startActivity(i);
			}
		});
	}

}
